﻿.pangea-common-page-header-flex {
    position: relative;
    background-color: #f5f5f5;
    color: #666666;
    width: 100%;
    padding: 0.75em;
    border-bottom: 1px solid #ededed;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    flex-grow: 0;
}

.pangea-common-page-background-white-flex{
    background-color:white;
}

.pangea-common-page-row-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    width: 100%;
}

button.pangea-common-page-row-flex > .pangea-common-widgets-info-button-heading {
    width: 15%;
}
.pangea-common-page-label-flex {
    font-weight: bold;
}

.pangea-common-page-header-flex a {
    color: #585350 !important;
    font-size: 1em;
    text-decoration: none !important;
}

    .pangea-common-page-header-flex h2 {
        font-size: 1em;
        font-weight: bold;
        margin: 0;
        width: auto;
    }

    .pangea-common-page-header-flex .last-node {
        color: #141414 !important;
        font-size: 1.1em;
        font-weight: bold !important;
    }

    .pangea-common-page-header-flex button {
        color: white;
        font-size: 0.75em;
        border: none;
        background: none;
        cursor: pointer;
    }

/* Page content wrapper */
.pangea-common-page-wrap-flex {
    box-sizing: border-box;
    max-height: calc(100vh - 9.5em);
    margin: 0 auto;
    padding: 0.5em;
/*    overflow: auto;*/
    position: relative;
}

.pangea-common-page-wrap-full-flex {
    max-height: 100vh !important;
}

/* Icon layout (if used inside wrap) */
.pangea-common-page-wrap-flex .pangea-common-page-icon {
    width: 1em;
    text-align: center;
}

#pangea-common-content.pangea-common-content-no-ui .pangea-common-page-wrap-flex {
    max-height: 100vh;
}



/* Optional enhancements for Flex dropdowns */
.pangeaDropdownFlex .rz-dropdown-item.rz-state-highlight {
    background-color: white !important;
    color: black !important;
}

    .pangeaDropdownFlex .rz-dropdown-item.rz-state-highlight:hover {
        background-color: #35648B !important;
        color: white !important;
    }

.pangeaDropdownFlex .rz-dropdown-item:hover {
    background-color: #35648B !important;
    color: white !important;
}

.pangeaDropdownFlex .rz-dropdown-items-wrapper {
    border: solid black 1px;
}

.pangeaDropdownFlex .rz-dropdown-item:not(:last-child) {
    border-bottom: 1px solid #ccc;
}


@media (max-width:400px) {
    .pangea-common-page-row-flex {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }
}

@media(max-width:620px) {
    .pangea-common-page-row-flex {
        flex-direction: column;
        /*        border: 5px solid red;*/
        align-items: stretch; /* ensures children stretch horizontally */
        gap: 0.2em;
    }

        .pangea-common-page-row-flex .pangea-common-page-label-flex {
            margin: 0;
        }
}

/* Responsive adjustments */
@media (max-width: 950px) {
    .pangea-common-page-wrap-flex {
        padding: 1em;
    }
}
